using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WMSSystem.Domain.Workflow
{
    /// <summary>
    /// WorkflowCore定义表
    /// </summary>
    public class WorkflowDefinitions
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Description("主键ID")]
        [MaxLength(200)]
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        [Description("版本")]
        [Key]
        public int Version { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Description("描述")]
        [MaxLength(500)]
        public string? Description { get; set; }

        /// <summary>
        /// 显示名称
        /// </summary>
        [Description("显示名称")]
        [MaxLength(200)]
        public string? DisplayName { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        [Description("数据类型")]
        [MaxLength(500)]
        public string? DataType { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        [Description("数据")]
        public string? Data { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Description("创建时间")]
        public long CreateTime { get; set; }
    }
} 